@charset "UTF-8";

.fade-enter-active,
.fade-leave-active {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: opacity 0.15s ease;
}

.fade-enter,
.fade-leave-active {
  opacity: 0;
}

.pageSlide-enter,
.pageSlide-leave-active {
  opacity: 0;
}

.pageSlide-enter-active,
.pageSlide-leave-active {
  transition: opacity ease 0.3s, transform ease 0.3s;
}

.pageSlide-enter,
.pageSlide-leave-active {
  transform: translate3d(100%, 0, 0) !important;
}

.slideDown-enter-to,
.slideDown-leave {
  height: 70px;
}

.slideDown-enter-active,
.slideDown-leave-active {
  transition: all ease 0.3s;
}

.slideDown-enter,
.slideDown-leave-to {
  height: 0;
}

#app {
  height: 100%;
}

.theme-color {
  color: $theme-color !important;
}

.app_container {
  position: relative;
  height: 100%;

  //   overflow: hidden;
  // 页面展示container
  .page_container {
    height: calc(100% - 45px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.app_as_page {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.app_tabbar {
  border-top: 1px solid #ccc;
  transition: transform 0.3s;
  transform: translateY(0);

  i {
    font-size: 20px;
  }

  .van-tabbar-item--active {
    color: $theme-color;
  }

  &.app_tabbar_hide {
    transform: translateY(100%);
  }
}

.app_tabs {
  .van-tab {
    font-weight: 800;
  }

  .van-tab--active {
    color: $theme-color;
  }

  .van-tabs__line {
    background-color: $theme-color;
  }
}

.van-toast--text {
  min-width: unset !important;
}

.app_vant_dialog {
  .van-dialog__confirm,
  .van-dialog__confirm:active {
    color: $theme-color;
  }
}

.app_standard_padding {
  padding-left: 15px;
  padding-right: 15px;
}

@keyframes shake {
  0%,
  to {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  5%,
  15% {
    -webkit-transform: translate3d(-10px, 0, 0);
    transform: translate3d(-10px, 0, 0);
  }

  10%,
  20% {
    -webkit-transform: translate3d(10px, 0, 0);
    transform: translate3d(10px, 0, 0);
  }

  25% {
    transform: translateZ(0);
  }
}
